//
//  JPTopSafeBaseView.m
//  JPSafeViewDemo
//
//  Created by mac on 2018/5/29.
//  Copyright © 2018年 carpenter. All rights reserved.
//

#import "JPTopSafeBaseView.h"
#import <Masonry/Masonry.h>

@interface JPTopSafeBaseView()

/**
 顶部安全高度（适配iphoneX齐刘海）
 */
@property (nonatomic ,assign) CGFloat topSafeHeight;

@end

@implementation JPTopSafeBaseView



- (instancetype)init
{
    self = [super init];
    if (self) {
        [self jp_createContentView];
        [self jp_setupContentView];
    }
    return self;
}

-(void)jp_createContentView{
 
    //展示内容视图
    self.contentView = [UIView new];
    [self addSubview:self.contentView];
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo([[UIApplication sharedApplication] statusBarFrame].size.height);
        make.left.bottom.right.mas_equalTo(0);
    }];
 
}

-(void)jp_setupContentView{
}

@end
